function [ f ] = k(d, n, m)
%K kocka dobalo
%   IN: d - dice, ilyen kockaval dobunk
%       n - ennyi kockaval dobunk
%       m - modosito
%   OUT:
%       f - eredmenyek

if nargin == 0
    d = 20;
    n = 1;
    m = 0;
elseif nargin == 1
    n = 1;
    m = 0;
elseif nargin == 2
    m = 0;
end

f = ceil(d.*rand(n,1) + m);

